package com.example.shaomengjie.smvp.view;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.shaomengjie.smvp.MyApplication;
import com.example.shaomengjie.smvp.R;
import com.example.shaomengjie.smvp.framework.view.AppDelegate;

/**
 * Created by shaomengjie on 2017/6/22.
 */

public class SplashDelegate extends AppDelegate{

    public ImageView imageView;

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    public void initWidget() {
        super.initWidget();
        imageView = get(R.id.mSplashADImageInSplash);
    }

    public void loadSplashADImageView(String url){
        Glide.with(getActivity()).load(url).into(imageView);
    }
}
